package cn.exrick.common.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Service;

import cn.exrick.service.SearchItemService;

/**
 * 启动监听器
 *
 * @author Storezhang
 */
@Service
public class StartupListener implements ApplicationListener<ContextRefreshedEvent> {

    @Autowired
    private SearchItemService searchItemService;

    @Override
    public void onApplicationEvent(ContextRefreshedEvent evt) {
//        searchItemService.importAllItems();
    }
}
